package com.ojoin.trade.common.web.service.impl;

import com.ojoin.trade.common.autoconfig.api.IChangeListener;
import com.ojoin.trade.common.autoconfig.api.IConfig;
import org.springframework.stereotype.Component;

/**
 * User: huanggc
 * Date: 16-6-30
 * Time: 下午5:15
 */

@Component
public class HotConfigService implements IChangeListener {

    private String to = "";
    private String cc = "";


    public  void setTo(String to) {
        this.to = to;
    }

    public  void setCc(String cc) {
        this.cc = cc;
    }

    public  String getTo() {
        return this.to;
    }

    public  String getCc() {
        return this.cc;
    }

    @Override
    public void changed(IConfig config) {
        setTo(config.get("t1loan_mail_to","guoting@l8join.com"));
        setCc(config.get("t1loan_mail_cc","guoting@l8join.com"));
    }

}
